//
//  TFHttpDataLoad.h
//  Liyadong
//
//  Created by Liyadong on 2019/4/8.
//  Copyright © 2019 Liyadong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpRequest.h"
#import "AllInterfaceApi.h"

NS_ASSUME_NONNULL_BEGIN

@interface TFHttpDataLoad : NSObject


/** 获取订单轨迹 */
+(void)requetOrderRealRouteWithOrderId:(NSString *)orderId success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

 

/** 获取优惠券 */
+(void)requetDiscountListWithMemberId:(NSNumber *)memberId success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 获取司机位置 */
+ (void)requestDriverPlaceWithDriverId:(NSNumber *)driverId productId:(NSString *)productId orderId:(NSString *)orderId success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 用户id,设备与个推id建立绑定关系 */
+(void)requetPushRelationWithGetuiCid:(NSString *)cid phone:(NSString *)phone Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 获取我的共享账户列表 */
+ (void)requestClinetForMeWithClinetPhone:(NSString *)clientPhone  Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 我为ta开通的 */
+ (void)requestClinetForOtherWithenterpriseId:(NSString *)enterpriseId  Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 获取优惠券列表 */
+(void)requetCouponListWithPhone:(NSString *)phone page:(NSInteger)page Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 获取账单列表 */
+(void)requetPayListWithPhone:(NSString *)phone page:(NSInteger)page Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 兑换优惠券 */
+(void)requetCouponWithPhone:(NSString *)phone code:(NSString *)code Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 获取钱包充值金额接口 */
+(void)requetChargeMoneyListWithSuccess:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 支付宝充值 */
+(void)requetChargeAlipayWithPhone:(NSString *)phone money:(NSString *)money Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 微信充值 */
+(void)requetChargeWechatWithPhone:(NSString *)phone money:(NSString *)money Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;



/** 删除共享账户 */
+ (void)requestDeleteShareAccountWithAccountID:(NSString *)accountID Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 修改紧急联系人 */
+ (void)requestChangeEcnWithPhone:(NSString *)phone ecnStr:(NSString *)ecnStr ecpStr:(NSString *)ecPStr Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;


/** 紧急求助 */
+ (void)requestUrgencyHelpWithCarNumber:(NSString *)carNumber
                             employName:(NSString *)employName
                            employPhone:(NSString *)employPhone
                              showPhone:(NSString *)showPhone
                         passengerPhone:(NSString *)passengerPhone
                               employId:(NSString *)employId
                             startPlace:(NSString *)startPlace
                               endPlace:(NSString *)endPlace
                                Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure ;

/** 我已安全 */
+ (void)requestUrgencySafetyWithCarNumber:(NSString *)carNumber
                               employName:(NSString *)employName
                              employPhone:(NSString *)employPhone
                                showPhone:(NSString *)showPhone
                           passengerPhone:(NSString *)passengerPhone
                                 employId:(NSString *)employId
                                  Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;


/** 行程外报警 */
+ (void)requestAlarmHelpNoOrderWithPassengerPhone:(NSString *)passengerPhone
                                 formattedAddress:(NSString *)formattedAddress
                                          Success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

/** 控制共享账户的开启或者暂停 */
+(void)requetControlShareAccountWithAccountId:(NSString *)accountId suspendType:(NSString *)suspendType success:(void (^)(id result))success failure:(void (^)(NSError *error))failure;

@end

NS_ASSUME_NONNULL_END
